<template>
  <div>
    <!-- 2. 在组件内容传入结构替换slot -->
    <MyDialog>
      <input type="text" placeholder="请输入内容" />
    </MyDialog>
    <MyDialog></MyDialog>
  </div>
</template>

<script>
import MyDialog from "./components/MyDialog.vue";
export default {
  data() {
    return {};
  },
  components: {
    MyDialog,
  },
};
</script>

<style>
body {
  background-color: #b3b3b3;
}
</style>